package com.zswl.decorate.ui;


import android.view.ViewGroup;
import android.widget.LinearLayout;

import com.zswl.decorate.R;
import com.zswl.decorate.base.BackActivity;

import butterknife.BindView;
import io.flutter.facade.Flutter;
import io.flutter.view.FlutterView;

public class FlutterListViewActivity extends BackActivity {
    @BindView(R.id.ll_container)
    LinearLayout linearLayout;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_flutter_list_view;
    }

    @Override
    protected void init() {
        FlutterView flutterView = Flutter.createView(this, getLifecycle(), "route2");
        ViewGroup.LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -1);
        linearLayout.addView(flutterView, layoutParams);


    }
}
